package com.wutianyi.module.commons;

import java.util.Date;

/**
 * @author hanjiewu
 * 
 */
public class Pair {

	private int id;
	private int iId;
	private int order;
	private String key;
	private String value;
	private Date gmtCreate;
	private Date gmtModified;

	public Pair() {

	}

	public Pair(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getiId() {
		return iId;
	}

	public void setiId(int iId) {
		this.iId = iId;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("[\n\tid: ");
		builder.append(id);
		builder.append("\n\tiId: ");
		builder.append(iId);
		builder.append("\n\torder: ");
		builder.append(order);
		builder.append("\n\tkey: ");
		builder.append(key);
		builder.append("\n\tvalue: ");
		builder.append(value);
		builder.append("\n\tgmtCreate: ");
		builder.append(gmtCreate);
		builder.append("\n\tgmtModified: ");
		builder.append(gmtModified);
		builder.append("\n]");
		return builder.toString();
	}
}
